package by.kniazhych.core.controllers.actions {
	
	/**
	 * ...
	 * @author Boutylin Mikhail
	 */
	
		import by.kniazhych.core.controllers.AbstractServerAction;
	import by.kniazhych.core.controllers.GameController;
	import by.kniazhych.core.events.GameEvent;
	

	
	public class GiveTurnAction extends AbstractServerAction{
		private var _color:uint;
		
		public function GiveTurnAction(target:GameController, color:uint) {
			super(target);
			_color = color;
		}
		
		override public function process():void {
			super.process();
			_gameContainer.mouseChildren = _color === _gameData.color;
			dispatchEvent(new GameEvent(GameEvent.ACTION_PROCESSED));
		}
		
	}

}